{literal}
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
    $("#teamRosterDetails").hide();
	$("#teamRosterHide").hide();
	
	$("#teamRosterShow").click(function () {
		$("#teamRosterHide").show("slide", {direction: "down"}, 1000);
		$("#teamRosterDetails").show("slide", {direction: "down"}, 1000);
		$(this).hide("slide", {direction: "up"}, 1000);
    });
	
	$("#teamRosterHide").click(function () {
		$("#teamRosterShow").show("slide", {direction: "down"}, 1000);
		$("#teamRosterDetails").hide("slide", {direction: "up"}, 1000);
		$(this).hide("slide", {direction: "up"}, 1000);
    });	
});
//]]>
</script>
{/literal}
<div id="roster">
<fieldset>
    <legend>Roster</legend>
    <h4 id="teamRosterShow">Details</h4><h4 id="teamRosterHide">Details</h4>
    <table id="teamRosterDetails" cellspacing="0">
{foreach $members as $member}
    <tr>    
        <td>
        {if $member->member_avatar == 1}
           {avatar $j_basepath .'images/avatars/'.$member->id,$member->nickname}
        {/if}
        </td>
        <td>
            <dl>
                <dt>{@havefnu~members.role@}</dt>
                <dd>{zone 'havefnu~rolename',array('id_team'=>$id_team,'id_user'=>$member->id)}</dd>
                <dt>{@havefnu~members.nickname@}</dt>
                <dd>
                {if $member->member_country != ''}
                <img src="{$j_basepath.'images/flags/'.$member->member_country.'.gif'}" alt="{@havefnu~members.country@}"/>{/if} <a href="{jurl 'havefnu~team_member:view',array('login'=>$member->login)}" title="{@havefnu~members.consult.the.profile@}">{$member->nickname|escxml}</a>
                {if ($member->member_xfire != '' )}
                <br/>
                <img src="{$j_basepath .'images/others/xfire.png'}" alt="xfire"/> <strong>XFire:</strong> {$member->member_xfire|escxml}<br/>
                {/if}
                </dd>
                <dt>{@havefnu~members.firstname@}:</dt><dd>{$member->member_firstname|escxml}</dd>
                <dt>{@havefnu~members.age@}:</dt><dd>{age $member->member_birth}</dd>
                <dt>{@havefnu~members.town@}:</dt><dd>{$member->member_town|escxml}</dd>
            </dl>
        </td>        					
    </tr>
    {if $member->member_comment != ''}
        <tr><td colspan="2"><strong>{@havefnu~members.comments@}:</strong><br/> {$member->member_comment}</td></tr>
    {/if}
{/foreach}
    </table>
</fieldset>
</div>